package com.lemo.service.impl;

import com.lemo.dao.UserDao;
import com.lemo.model.User;
import com.lemo.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * impl
 *
 * @author 方宗庆
 * @create 2018-11-06 15:16
 */
@Service
public class UserServiceImpl extends HibernateDaoSupport implements UserService {

  @Autowired
  UserDao userDao;

  @Override
  public void test() {
    System.out.println("Hello Word");
  }

  @Override
  public Serializable save(User user) {
    return userDao.save(user);
  }
}